Refactored code inside inside a Style.