prototypes: minor refactoring, adapted to Magnum changes.