Removing irrelevant code in data_object_controller