Refactor theme compiler pass to ensure processing instances of ThemeInterface