Extracting controller classes