Move war creation from api to impl.