Convenience helper to retrieve the last component.