Move the 'create_control_file' function to utils