Remove unused misc utility methods
Refactor global code in configuration module