Updated the master to transform allocations.

Review: https://reviews.apache.org/r/29234