remove legacy CSS class from markup

fixes #3254