[FIX] Remove the useless and buggy arguments_to_record function