Extracting 'params' declaration to its own method