Refactor _getComponents. Broken