Separate out Redis-dependent modules and non-dependent modules.