The 49ers started to plan Brock Purdy’s extension in 2022 — and their division rivals helped them.