This now uses a AppScanOptionalFeature injected interface that is satisfied by each module, reducing the duplicated code to a minimum Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>