Refactoring that extracts parameters and keywords code