Remove print statements in remove_objects_from_array