refactor to functional approach

Signed-off-by: Sebastian Schüpbach <sebastian.schuepbach@unibas.ch>
3 jobs for master in 5 minutes and 31 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed test-sbt #71018
mbr

00:02:30

 
  Build
passed assembly-sbt #71019
mbr

00:02:33

 
  Publish
passed build-latest-image #71020
mbr

00:00:27