fact-table refactoring to facts