Refactor set_process_title