replace $spec array with individual properties
move route modification via spec to factory