Simplify the extending the main object mechanism for DSL

* Writing a blog article about this approach I noticed how
  awkward the implementation was here, so I fixed it :)