[[ Bug 12924 ]] Get the appropriate segment for front and back fill calculation