Restructure the matrix module in a more generator container module. Structure it as a dub package.