Refactor metadata related functions to raik_core_handoff_tracking module.