The module is indeed very large but allows configuring every aspect of icingaweb2. The built-in monitoring module is in an own file because there are actually more (third-party) modules and this structure means every module can get an own file.