Extracted methods to keep it clean