refactoring: DSL to create tree of mock positions