Handling options in factory association