Move recommendations function to domain from schema_test