simplify 'instance-spec' logic