Renaming constructor parameters in encoder_factory and decoder_factory