util/ContainerUtils: Take containers by reference

removeFromContainer doesn't worth much if it only removes from a copy