Refactor BEMHTML