macro_rules! extract_object_refs {
    ($args:ident, $idx:expr, $err_msg:expr) => { ... };
}