Removing superfluous markup