Refactoring of PHP5 config modules