Apply refactor on brackets