Use named constant instead of magic number

Should really have pushed this to master in the first place.