Provide guidance for refactoring existing Ajax API commands