Moves all non-CSS functionality out to stand-alone module that produces a block.