Move some magic numbers out of SQL RP.