Move from an array-based API to a hash-based API.