Fix compilation of factory api url templates