Extract Ace handling to a method
Extract Ace handling to a method

To prepare for some testing.

See #1178

tjyang/hugo,digitalcraftsman/hugo,anthonyfok/hugo,ffrizzo/hugo,tubo028/hugo,mitchchn/hugo,derekperkins/hugo,fedelibre/hugo,halostatue/hugo,jygastaud/hugo,mayah/hugo,fedelibre/hugo,bogem/hugo,abourget/hugo,Zenithar/hugo,coderzh/hugo,gohugoio/hugo,halostatue/hugo,tubo028/hugo,MarkDBlackwell/hugo,ryanclarke/hugo,digitalcraftsman/hugo,coderzh/hugo,derekperkins/hugo,mitchchn/hugo,soundrussian/hugo,mdhender/hugo,melo/hugo,vbatoufflet/hugo,fhergomez/hugo,tatsushid/hugo,fhergomez/hugo,bramp/hugo,soundrussian/hugo,abourget/hugo,gohugoio/hugo,badoet/hugo,anthonyfok/hugo,jygastaud/hugo,mayah/hugo,tischda/hugo,tjyang/hugo,sprig/hugo,ifraixedes/hugo,sprig/hugo,mdhender/hugo,tischda/hugo,kujohn/hugo,ryanclarke/hugo,bramp/hugo,anthonyfok/hugo,fedelibre/hugo,bogem/hugo,ifraixedes/hugo,kujohn/hugo,badoet/hugo,vbatoufflet/hugo,tatsushid/hugo,ffrizzo/hugo,fedelibre/hugo,melo/hugo,Zenithar/hugo,mdhender/hugo,MarkDBlackwell/hugo,mdhender/hugo,gohugoio/hugo