Use traits instead of extending.