factorize css