[Factory] Fixed factory on classes that extend Modification
Merge pull request #34 from stewe/fix-ext

[Factory] Fixed factory on classes that extend Modification