Minor refactoring: reuse the code of generating stub content
1 file changed