Shorten extracted source code regions