Merge instance definitions with function defs