Remove code and allocations