Add support for explicit 'bem' attribute to set class for replacement