Refactor method parameters