Clean up and simplify l2_cache_write module.