buttonMarkup: Remove duplicated code
Merge pull request #5626 from stforek/duplicated_buttonmarkup

Duplicated code in butonMarkup