Refactor code_objects