Consolidate attribute config
Type hint $config parameter
More advanced transformer