could this copypasta be extracted to the superclass or some helper module?