Remove duplication in items controller