Refactor Settings module to namespaces