Pack some reflection init procedures to macro.