Reduce path method complexity