Put old-style FACTORY_* options back in as deprecated

The old options are put on the new _meta attribute as early as possible.
They are then removed from the attributes and a deprecation warning is
raised. They do however take precedence over new-style options, since
this seems the safest way to deal with them.