Config rule provider service factory

Supersedes #154