Refactoring inline styles