After lots of searching and checking finally we were able to create the common controller and repository. We did not needed to load the via services, followed the generic structure and was able to achieve it.