Apply suggestions from code review
Apply suggestions from code review

Co-Authored-By: Henrik Stranneheim <7e6868fe6ad6bc9348d9c617368ee6fc0cdaf95d@scilifelab.se>
henrikstranneheim/MIP,henrikstranneheim/MIP