Define service through modules instead inheritance