You are breaking code here.

if the method `retries` returns `env[:db_find_retries]`, then if the retry variable is not set in env, `retries` will return nil.
retries ||= 0 will have absolutely no effect since it won't be written back in the env.

This change is not happening.