Small refactoring for DisplayNode constructors.