WIP on factory

Experimenting a way to transform parsed content to objects.