Removing unnecessary methods from literals.