Rails initializer to be more clean
If this is a Rails project (or you use ActiveSupport) you can replace

@old_data = old_data.reject { |k, _v| excluded_params.include? k }
with
@old_data = old_data.except(excluded_params)