Inline factorial helper.
More stylistic fixes.