I have moved these out into a BaseSupport.h library.
https://github.com/roberttidey/BaseSupport
It includes the setup routine and includes support for
- WifiManager
OTA webserver
SPIFFS
WebServer
Web FS access / editing
delay routines
This is used by including a BaseConfig.h in the ino which then allows customisation of the setup operation and names / passwords used.
This has helped me in creating new projects and in keeping ino files smaller and easier to maintain.