Replace a number of @defs with @defining in views