Refactor: Extract variable
Refactor: Extract variable

Avoid repeating params["#{x}.to_sym] many times.
(transferred from ManageIQ/manageiq@ba16f4d7445a7f0d17c6bd3720d5c1fc2be2e02e)

ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic