You should use the AST_SCHED_REPLACE() macro instead.
You should use the AST_SCHED_REPLACE_VARIABLE() macro instead.