a small performance improvement in applicability generation to get the profile from existing_applicability instead of looking up in the db when existing_applicability is not None