Extract function for incrementing letter code to DRY it up and simplify

Thanks to @txgruppi for the exellent suggestion!