Insert extracted method after its previous surrounding method

Fixes #1001808
Merge pull request #23 from sschaef/t-extract-method-refactoring

Insert extracted method after its previous surrounding method