Cleans up code for spriteset distributer