Refactoring: removed unused parentShape argument