Addressed some issues with recursive getComponents behavior.
- Split recursive functionality into a private method.
- Changed structure of recusive calls to avoid calling getComponents on points.