added implementation of factory pattern for trophic services