Implementing Chiral Three-Body Forces in Terms of Medium-Dependent Two-Body Forces