Refactor the RandSRG and AdaptiveSRG. from inheritance to embedding