Moving generic RTS code from RA mod to Common