Refactors code style