Combine styles and remove unneeded tags