If you use SASS, you can use the function @extend
.
However, it is recommended to avoid this, as it copies the selected class to a new one, thereby essentially doubling the size of your CSS
The solution is to not upgrade to BS-4 unless you have a requirement. Or update all your HTML when you do
Edit
SASS docs, , . .
- CSS, , , CSS