Move some helper function out of DrawingLifeApp class