minor FP-style function refactor in constellation