rc: Duplicate code