Config: allow 'factories' key in custom extensions