Moving recommendation methods to a separate class.