fix(warning): try to reduce complexity