Problem
The BlockRestriction class was created as a singleton instead of a service. There isn't a reason why this shouldn't be a service which is consistent with the (proposed) best practices.
Solution
Convert to a service and make static methods non-static.