Refactored TrexGoals architecture.