Refactors parameterize method