(MODULES-1188) DRY up generated modules

Without this patch, you repeat yourself in the code and the README,
which violates DRY (Don't Repeat Yourself) and leads to inconsistencies.