Relevant code: https://github.com/helsinki-systems/bird/commit/364e69bad66b8d4361ba1d1b3ed226d769e76699