Commented and refactored `$component` service.