Make sure we do goat-level customcodes before sync-level ones.