Move post_src_install metadata code to one func.