Extracted Canvas controller helpers to module for use as a mixin