This company has pivoted toward high-margin revenue, and it's working wonders for its financials.