Refactored into ServiceProvider
Don't hide register behind if statement