Added IoC Refactoring in Registration