Media-legacy: Rework the allocations