Produced abstract factory for instantiating already preloaded from database instances.
Refactored old abstract factory.