Removing duplication in favorites controller