Clean up duplicate code in ByteArrayManager after adding the
FreeMemoryManager