Rename variable to represent function
Create IdGenerator
Extract interface