larva-smooks: small refactoring