[FEATURE] USe the deprecationRepository for checks

Changed the Deprecation check to use the deprecation repository
instead of the hardcoded array.