Move the CodeExtractor utility to a dedicated header file / source file,