Refactoring to provide more clear and extendable mapping HTML -> WIKI