Modify util.beatr to use mixin and templates to remove duplications of code