Refactored node styling into methods.