Clean out obsolete code from search controller