Complete Refactoring of the Code was performed.
Service Manager Layers were introduced.
Code After Complete Refactoring