Refactor bemhtml

// cc @tormozz48 @tavriaforever @gela-d 
@sipayRT we haven't yet pre-commit hook in this repository ;)