move out spec generation code