Converting element with 'sm' classes to more structurized.