Move DOT stuff into a new helper named DotHelper, adding some specs.