Separate fann_create_* code to minimize code duplication