Moving writecss common to its own module