Refactoring to create a get-param-from-key template that can be used for multiple params that have key:value lists.