Extract main class as Hub.Core