Refactors the _getSearchParameters controller helper, scrubs out commented-out code.
Strips out unused helper functions.