Remove registration of doctrine & modules from constructor