Refactor theme compiler pass
* Refactor build theme mechanism