Refactoring, and removed when an attribute configuration is a function (only boolean, string and configuration object accepted)