[RFC] Refactor Triple-related classes

Since the design is not obvious at first glance I’ve made the diagram for it. There is only Architecture-related part of the Triple, and other parts still is to be designed.