slight refactoring of business intelligence for code reuse. Tests still pass.