Update how base replacements are handled.