Refactors some duplication in Params configuration