Remove deprecated register keyword