Allow to specify pain format when using Factory