Unified and fixed determine_length functions across all three vis features classes