Remove create_codeobject and merge its content into Device.code_object