Commonize applying args logic from record and model factories

This commonizes the logic for applying args between record and
model factories. This is to setup some new features related to
this logic. This commonizes most of the logic and makes the
behavior consistent between the two kinds of factories.