A few code improvements on configure-printer

Authored by dantti on Feb 7 2018, 12:41 AM.