Revert "Tremendous performance improvement, do not try to search for custom rules if default rules are enabled"

This reverts commit 669b1a246a21a9def0f3deb9aefaa3652ee31804.