extract params assignment to private method