Use static member function instead for static registrations