CGE2: Refactor Hero::expand() and Sprite::expand().