Removed recursive type reference, cleaned up extraColor function