Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx> writes: > This is the last function in this code (besides public API) that takes > submodule argument and handles both main/submodule cases. Break it down, > move main store registration in get_main_ref_store() and keep the rest > in register_submodule_ref_store(). Very nice.