Take steps toward better modularity and SRMHD implementation