refactor(keyPrettify): move sequence templating to the main directive