I feel like this has the potential to be a source of frustration when a developer looking at this is wondering where params[:type] is.