chore: put setup code into functions
chore: put setup code into functions

oscarlorentzon/OpenSfM,mapillary/OpenSfM,oscarlorentzon/OpenSfM,mapillary/OpenSfM,oscarlorentzon/OpenSfM,oscarlorentzon/OpenSfM,mapillary/OpenSfM,mapillary/OpenSfM,oscarlorentzon/OpenSfM,mapillary/OpenSfM