Correcting bug in findById()

and removing contactfactory