options::wrapper::writefunction refactoring.