Refactored the StyleMagic class