Nice :) I like these refactorizations into functions.