Refactor MAC address getter to own method.