Refactor hook settings

Add a factory service class that wraps calls to settings.getXXX()