horizoll: reduce SLOC for corner case handling