Get rid of non-required parameters
Move imports to module level
Extract method