Refactored LDA variational inference