Removed duplicated code and made InlinedMethods inherit from InlinedExpression

Signed-off-by: Stefan Marr <git@stefan-marr.de>