Refactoring code related to drawing information formats