Replace return value with interface declaration