Refactored to support new Recommenders API.

Signed-off-by: Kavith Thiranga Lokuhewage <rc404mekt@gmail.com>