Homotopy homomorphisms and the classifying space functor