Remove redundancy in API.