flatpak: Refactor the plugin's setup method

Clarify the code a little. This introduces no functional changes.
1 job for flatpak-repo-warnings in 20 minutes and 8 seconds (queued for 1 second)
latest
Status Job ID Name Coverage
  Build
passed #330798
build-gnome-software

00:20:08