Further refactoring for directive declarative configuration.