重构以下代码，使其更具可读性和可维护性。


def funct1(x):
if x == 0:
print('x is 0')
return 0
elif x == 1:
print('x is 1')
return 1
else:
print('x is greater than 1')
return x
下面是一个更易于理解和维护的代码重构版本：

def funct1(x):
    if x == 0:
        print('x is 0')
        return 0
    elif x == 1:
        print('x is 1')
        return 1
    else:
        print('x is greater than 1')
        return x