Removes some unnecessary layout formatting.