Chain some functions and replace self::fn() by static::fn()